<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='录入盘点数据', subtext='录入盘点单明细数据'">

<head>
	<title>盘点</title>
</head>
<body>
	<th:block layout:fragment="content">
		<div class="box">
			<div class="box-body">
				<form id="codetailsCountForm" name="codetailsCountForm" th:object="${m}" th:action="@{|${baseUrl}/countdiff${m.id==null?'':'/' + m.id}|}" method="post" class="form-horizontal" novalidate="novalidate">
					<input id="id" type="hidden" name="id" th:field="*{id}" />
					<input id="version" type="hidden" name="version" th:field="*{version}" />
					<div class="row line">
						<div class="col-lg-6">
							<h3 class="page-header">盘点数据</h3>
						</div>
					</div>
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">行号</label>
										<div class="col-sm-8 form-control-static">
											<input id="lineNumber" name="lineNumber" th:value="*{lineNumber}" maxlength="20" th:readonly="${not m.new}" class="form-control" />
										</div>
									</div>
								</div>
						   </div>

                           <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="control-label col-sm-3 mg-top-6 ">物料编码</label>
                                        <div class="col-sm-8 form-control-static">
                                            <input id="materialCode" name="materialCode" th:value="*{materialCode}" maxlength="20" th:readonly="true" class="form-control" />
                                        </div>
                                    </div>
                                </div>
                           </div>

                           <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="control-label col-sm-3 mg-top-6 ">物料名称</label>
                                        <div class="col-sm-8 form-control-static">
                                            <input id="materialName" name="materialName" th:value="*{materialName}" maxlength="20" th:readonly="true" class="form-control" />
                                        </div>
                                    </div>
                                </div>
                           </div>


						   <div class="row">
							<div class="col-sm-6">
								<div class="form-group">
									<label class="control-label col-sm-3 mg-top-6 ">批号</label>
									<div class="col-sm-8 form-control-static">
										<input id="fromLotattr05" name="fromLotattr05" th:value="*{fromLotattr05}" maxlength="20" th:readonly="true" class="form-control" />
									</div>
								</div>
							</div>
						 </div>
						<div class="row">
							<div class="col-sm-6">
								<div class="form-group">
									<label class="control-label col-sm-3 mg-top-6 ">库位</label>
									<div class="col-sm-8 form-control-static">
										<input id="locationCode" name="locationCode" th:value="*{location.code}" maxlength="20" th:readonly="true" class="form-control" />
									</div>
								</div>
							</div>
						</div>
					    <div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<label class="control-label col-sm-3 mg-top-6 ">容器编码</label>
								<div class="col-sm-8 form-control-static">
									<input id="containNumber" name="containNumber" th:value="*{containNumber}" maxlength="20" th:readonly="true" class="form-control" />
								</div>
							</div>
						</div>
					    </div>

					     <div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-lg-3 required">库存数量</label>
										<div class="col-lg-8">
											<input id="qtyOrdered" name="qtyOrdered" type="number"  min="0" max="9999999999999" th:value="*{qtyOrdered}" th:readonly="true" class="form-control" />
										</div>
									</div>
								</div>
						   </div>
				            
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">盘点数量</label>
										<div class="col-sm-8 form-control-static">
											<input id="qtyCount" name="qtyCount" th:value="*{qtyCount}" maxlength="20" th:readonly="false" class="form-control required" />
										</div>
									</div>
								</div>
						   </div>
                  			<div class="row">
								<div class="col-sm-6">
									<div class="form-group">
										<label class="control-label col-sm-3 mg-top-6 ">说明</label>
										<div class="col-sm-8 form-control-static">
											<input id="countMemo" name="countMemo" th:value="*{countMemo}" maxlength="20" th:readonly="false" class="form-control" />
										</div>
									</div>
								</div>
						   </div>		
						                     			
						   <div class="row">
								<div class="col-sm-6">
						            <div class="form-group">
						              <label class="control-label col-sm-3 mg-top-6 ">状态</label>
						              <div class="col-sm-8 form-control-stati">
						                <select name="lineStatus" id="lineStatus" th:field="*{lineStatus}" th:readonly="true" class="form-control">
						                  <option value="">请选择</option>
						                  <option th:each="a : ${@CODES.findByType('CO_STATUS')}" th:value="${a.value}" th:text="${a.name}" />
						                </select>
						              </div>
								  </div>
				               </div>
				            </div>
				            
					  	   <div class="hr-line-dashed"></div>
						   <div class="form-group">
								<div class="text-center">
									<a class="btn btn-default " th:href="@{|${baseUrl}/${headerId}|}"> <i
										class="fa fa-fw fa-reply"></i> 返回
									</a>
									<button type="submit" class="btn btn-primary">
										<i class="fa fa-fw  fa-save"></i> 保存
									</button>
								</div>
						  </div>	
				</form>
			</div>
		</div>
	</th:block>
	<th:block layout:fragment="scripts">
		<script th:replace="layouts/fragments/validatejs :: validate"></script>
		<script th:src="@{|${theme}/js/app/inventory/codetails_count_diff_form.js?v=${applicationVersion}|}" th:inline="javascript"></script>
	</th:block>
</body>

</html>
